import React, { Component } from 'react'

export default class StyleDemo extends Component {
  render() {
    var name = '张三1';
    var obj = {
      background: 'green'
    };
    return (
      <>
        <div style={{ backgroundColor: 'yellow' }}>
          { name }
        </div>
        <div style={obj}>ddd</div>
        <label htmlFor="name">name</label>
        <input id="name" type="text" />
      </>
    )
  }
}
